#include "authorization.h"
#include "ui_authorization.h"
#include "qdebug.h"
#include "qsqlquery.h"
#include "database.h"
Authorization::Authorization(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Authorization)
{
    ui->setupUi(this);


}

Authorization::~Authorization()
{
    delete ui;
}

void Authorization::on_buttonBox_accepted()
{
    login = ui->loginEdit->text();
    password = ui->passwordEdit->text();
}

QString Authorization::getLogin()
{
    return login;
}

QString Authorization::getPassword()
{
    return password;
}
